const webpack = require('webpack');
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
const path = require('path');
module.exports = {
    mode: 'development',
    entry: {
        iview: ['view-design']
    },
    output: {
        path: path.join(__dirname, './dll'),
        filename: '[name].dll.js',
        library: 'iview'
    },
    plugins: [
        new CleanWebpackPlugin(),
        new webpack.DllPlugin({
            name: 'iview',
            path: path.join(__dirname, './dll/manifest.json')
        }),
    ]
};